Hertzsprung-Russell diagram for the classification of galaxies